package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "devt_zbcfg_info")
public class DevtZbcfgInfoEntity {
    private String id;
    private String zbname;
    private String zbcode;
    private String zbmeans;
    private String zbbz;
    private String zbsql;
    private String zbunit;
    private Integer xsws;
    private Integer delflag;
    private String modelid;
    private String fieldcode;
    private String zbclassid;
    private Integer xh;
    private Timestamp createtime;
    private Timestamp updatetime;
    private String tablename;
    
    @Id
    @Column(name = "ID", nullable = false, length = 64)
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Basic
    @Column(name = "zbname", nullable = true, length = 256)
    public String getZbname() {
        return zbname;
    }
    
    public void setZbname(String zbname) {
        this.zbname = zbname;
    }
    
    @Basic
    @Column(name = "zbcode", nullable = true, length = 256)
    public String getZbcode() {
        return zbcode;
    }
    
    public void setZbcode(String zbcode) {
        this.zbcode = zbcode;
    }
    
    @Basic
    @Column(name = "zbmeans", nullable = true, length = 256)
    public String getZbmeans() {
        return zbmeans;
    }
    
    public void setZbmeans(String zbmeans) {
        this.zbmeans = zbmeans;
    }
    
    @Basic
    @Column(name = "zbbz", nullable = true, length = 256)
    public String getZbbz() {
        return zbbz;
    }
    
    public void setZbbz(String zbbz) {
        this.zbbz = zbbz;
    }
    
    @Basic
    @Column(name = "zbsql", nullable = true, length = 256)
    public String getZbsql() {
        return zbsql;
    }
    
    public void setZbsql(String zbsql) {
        this.zbsql = zbsql;
    }
    
    @Basic
    @Column(name = "zbunit", nullable = true, length = 256)
    public String getZbunit() {
        return zbunit;
    }
    
    public void setZbunit(String zbunit) {
        this.zbunit = zbunit;
    }
    
    @Basic
    @Column(name = "xsws", nullable = true)
    public Integer getXsws() {
        return xsws;
    }
    
    public void setXsws(Integer xsws) {
        this.xsws = xsws;
    }
    
    @Basic
    @Column(name = "delflag", nullable = true)
    public Integer getDelflag() {
        return delflag;
    }
    
    public void setDelflag(Integer delflag) {
        this.delflag = delflag;
    }
    
    @Basic
    @Column(name = "modelid", nullable = true, length = 64)
    public String getModelid() {
        return modelid;
    }
    
    public void setModelid(String modelid) {
        this.modelid = modelid;
    }
    
    @Basic
    @Column(name = "fieldcode", nullable = true, length = 256)
    public String getFieldcode() {
        return fieldcode;
    }
    
    public void setFieldcode(String modelcode) {
        this.fieldcode = modelcode;
    }
    
    @Basic
    @Column(name = "zbclassid", nullable = true, length = 64)
    public String getZbclassid() {
        return zbclassid;
    }
    
    public void setZbclassid(String zbclassid) {
        this.zbclassid = zbclassid;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtZbcfgInfoEntity that = (DevtZbcfgInfoEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(zbname, that.zbname) && Objects.equals(zbcode, that.zbcode) && Objects.equals(zbmeans, that.zbmeans) && Objects.equals(zbbz, that.zbbz) && Objects.equals(zbsql, that.zbsql) && Objects.equals(zbunit, that.zbunit) && Objects.equals(xsws, that.xsws) && Objects.equals(delflag, that.delflag) && Objects.equals(modelid, that.modelid) && Objects.equals(fieldcode, that.fieldcode) && Objects.equals(zbclassid, that.zbclassid);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id, zbname, zbcode, zbmeans, zbbz, zbsql, zbunit, xsws, delflag, modelid, fieldcode, zbclassid);
    }
    
    @Basic
    @Column(name = "xh", nullable = true)
    public Integer getXh() {
        return xh;
    }
    
    public void setXh(Integer xh) {
        this.xh = xh;
    }
    
    @Basic
    @Column(name = "createtime", nullable = true)
    public Timestamp getCreatetime() {
        return createtime;
    }
    
    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }
    
    @Basic
    @Column(name = "updatetime", nullable = true)
    public Timestamp getUpdatetime() {
        return updatetime;
    }
    
    public void setUpdatetime(Timestamp updatetime) {
        this.updatetime = updatetime;
    }
    
    @Basic
    @Column(name = "tablename", nullable = true, length = 64)
    public String getTablename() {
        return tablename;
    }
    
    public void setTablename(String tablename) {
        this.tablename = tablename;
    }
}
